package com.juzipi.demo.tools;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserToken implements Serializable {


    private static final long serialVersionUID = 1L;

    //token id
    private String id;
    //用户id
    private Integer userId;
    //ip
    private String ip;
    //客户端
    private String userAgent;
    //授权时间
    private LocalDate issuedAt;
    //过期时间
    private LocalDateTime expiresAt;
    //是否记住我
    private boolean remember;






}
